package com.example.proramqdemo.controller;

import com.example.proramqdemo.ramq.ProduerTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/*********************************************************
 * @Author ONE_LLX
 * @Description //TODO 
 * @Date 17:45 2019/11/24
 * @Class RabbitMQController
 * @Version v1.0
 *********************************************************/

@RestController
public class RabbitMQController {


    @Autowired
    private ProduerTest produerTest;

    @GetMapping("/hello")
    public String hello(){
        produerTest.send();
        return "succes";
    }
}
